-- GENERATED SPELL FOR [Razormane Geomancer] --


function spell0_3269(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(20793,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3269', 3000, 1)
end

function spell1_3269(pUnit, Event) --@Frost Armor,Self--
pUnit:FullCastSpellOnTarget(12544,pUnit)
pUnit:RegisterEvent('Sorts_3269', 0, 1)
end

function Sorts_3269(pUnit, Event)
local choix_sorts_3269 = math.random(0, 1)
if choix_sorts_3269 == 0 then
pUnit:RegisterEvent('spell0_3269', 1, 1)
end
if choix_sorts_3269 == 1 then
pUnit:RegisterEvent('spell1_3269', 1, 1)
end
end

function mob3269_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3269', math.random(1500, 3000), 1)
end

function mob3269_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3269_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3269_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3269, 1, 'mob3269_Action')
RegisterUnitEvent(3269, 2, 'mob3269_Leave')
RegisterUnitEvent(3269, 3, 'mob3269_Kill')
RegisterUnitEvent(3269, 4, 'mob3269_Die')
